import 'package:flutter/material.dart';

class ExpandedWidget2 extends StatelessWidget {
  const ExpandedWidget2({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('expanded组件处理换行问题'),
        backgroundColor: Colors.amber,
      ),
      body: Center(
        child: Container(
          height: 100,
          color: Colors.grey,
          padding: const EdgeInsets.all(10),
          child: Row(
            children: [
              Image.network(
                'https://yanxuan-item.nosdn.127.net/afd6199278a5b8fd783bc4947960fabc.jpg',
                width: 90,
              ),
              Expanded(child: const Text('茶水分离杯耐热隔热玻璃杯 茶水分离杯耐热隔热玻璃杯')),
            ],
          ),
        ),
      ),
    );
  }
}
